<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <div id="app">
      <ul>
        <li>{{count}}</li>
        <li>{{double}}</li>
        <button @click="increment">+</button>
      </ul>
    </div>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/vue/3.0.0/vue.global.js"></script>
    <script src="./useCounter.js"></script>
    <script>
      let { count, double, increment } = useCounter;
      let appConfig = {
        setup() {
          return {
            ...useCounter,
          };
        },
      };
      Vue.createApp(appConfig).mount("#app");
      // https://www.cnblogs.com/alongup/p/12838922.html
    </script>
  </body>
</html>
